import { Progress } from "antd";
export const WAITING = "waiting";
export const UPLOADING = "uploading";
export const PAUSE = "pause";
export const SIZE = 300 * 1024 * 1024;
export const columns = [
  {
    title: "文件",
    dataIndex: "chunkHash",
    key: "chunkHash",
    width: 400,
  },
  {
    title: "大小（MB）",
    dataIndex: "size",
    key: "size",
    render: (size) => <span>{(size / (1000 * 1000)).toFixed(2)}</span>,
    width: 150,
  },
  {
    title: "进度",
    dataIndex: "percentage",
    key: "percentage",
    render: (percentage) => <Progress percent={percentage}></Progress>,
  },
];
